package com.qykj.ddhing.pda.demo.dagger2.test1;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.qykj.ddhing.pda.common.LogUtil;
import com.qykj.ddhing.pda.R;

import javax.inject.Inject;


/**
 * @author liuxiaofeng QQ:363204195
 * @name ddhing_pda
 * @class name：com.qykj.ddhing.pda.demo.dagger2.test1
 * @class describe
 * @time 2018/7/18 22:19
 * @change
 * @chang time
 * @class  1
 */
public class TestDagger2Activity extends AppCompatActivity {
    @Inject
    User user;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_testdagger2);
        DaggerTestMainComponent.builder().build().inject(this);
        LogUtil.getLogUtil_LXF().d("user2getName():"+ user.getName());
    }
}
